package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.utils.Store;
import com.example.demo.utils.StoreNameIdDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface StoreMapper extends BaseMapper<Store> {
    @Select("SELECT storeID, storeName FROM Store")
    List<StoreNameIdDTO> selectAllStoreIdsAndNames();
    @Select("SELECT StoreID From Store WHERE StoreAdminId = #{StoreAdminId}")
    String getStoreId(String StoreAdminId);
}
